package org.txazo.blog.web.exception;

import org.txazo.blog.util.log.LoggerManager;

/**
 * Struts2全局异常
 * 
 * @author Tu XiaoZhou
 * @since 2013-08-10
 * 
 */
public class GlobalException extends Exception {

	private static final long serialVersionUID = 1L;

	public GlobalException() {
		super();
	}

	public GlobalException(Exception e) {
		this(e.getMessage());
	}

	public GlobalException(String message) {
		super(message);

		/** 记录异常日志 */
		LoggerManager.getExceptionLogger().info(message);
	}

	public GlobalException(Throwable cause) {
		super(cause);
	}

	public GlobalException(String message, Throwable cause) {
		super(message, cause);
	}

}
